<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.6.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/lhgdialog/lhgdialog.min.js"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 12px;
}
-->
</style>

<script type="text/javascript" language="javascript">
$(function(){
	//全选
	$("#checkAll").click(function(){
		//所有checkbox跟着全选的checkbox走。
		$('[class=staffId]:checkbox').attr("checked", this.checked );
	});
	$('[class=staffId]:checkbox').click(function(){
		 //定义一个临时变量，避免重复使用同一个选择器选择页面中的元素，提升程序效率。
		 var $tmp=$('[class=staffId]:checkbox');
		 //用filter方法筛选出选中的复选框。并直接给CheckedAll赋值。
		 $('#checkAll').attr('checked',$tmp.length==$tmp.filter(':checked').length);
		/*
		 //一行做过多的事情需要写更多注释。复杂选择器还可能影响效率。因此不推荐如下写法。
		 $('#CheckedAll').attr('checked',!$('[name=items]:checkbox').filter(':not(:checked)').length);
		*/
	});
	
	//提交submit
	$("#delAll").click(function(){
		$("#mainForm").submit();
	});
});

function opendgbox(id)
{
    //var dg = new J.dialog({ id:id, html:'lhgdialog' });
    //如果作为jQ组件来用的话J就得换成$
    var dg = new $.dialog({ id:id, title:'添加建议', cancelBtnTxt:'关闭', height:260, maxBtn:false, page:'__PUBLIC__/html/addStaff.html'});
    dg.ShowDialog();
}
</script>
<title>员工列表</title>
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="__PUBLIC__/images/staff_list_images/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="__PUBLIC__/images/staff_list_images/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="__PUBLIC__/images/staff_list_images/tb.gif" width="16" height="16" /></div></td>
                <td width="95%" class="STYLE1"><span class="STYLE3">当前位置</span>员工列表</td>
              </tr>
            </table></td>
            <td width="54%"><table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td width="60"><table width="87%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center">
                      <input type="checkbox" name="checkAll" id="checkAll" />
                    </div></td>
                    <td class="STYLE1"><div align="center">全选</div></td>
                  </tr>
                </table></td>
                <td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div style="cursor:pointer; cursor:hand"  align="center" onclick="opendgbox(1984);"><img src="__PUBLIC__/images/staff_list_images/22.gif" width="14" height="14" />新增</div></td>
                    <td class="STYLE1"><div align="center"></div></td>
                  </tr>
                </table></td>
                <!--<td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                
                  <tr>
                    <td class="STYLE1"><div align="center"><img src="__PUBLIC__/images/staff_list_images/33.gif" width="14" height="14" />修改</div></td>
                    <td class="STYLE1"></td>
                  </tr>
                </table></td>-->
                
                <td width="52"><table width="88%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div style="cursor:pointer; cursor:hand"  align="center" id="delAll"><img src="__PUBLIC__/images/staff_list_images/11.gif" width="14" height="14" />删除</div></td>
                    <td class="STYLE1"><div align="center"></div></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="__PUBLIC__/images/staff_list_images/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="__PUBLIC__/images/staff_list_images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6" >
          <tr>
            <td width="2%" height="22" background="__PUBLIC__/images/staff_list_images/bg.gif" bgcolor="#FFFFFF"><div align="center">

            </div></td>
            <td width="6%" height="22" background="__PUBLIC__/images/staff_list_images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">工号</span></div></td>
            <td width="8%" height="22" background="__PUBLIC__/images/staff_list_images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">姓名</span></div></td>
            <td width="8%" height="22" background="__PUBLIC__/images/staff_list_images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">部门</span></div></td>
            <td width="8%" height="22" background="__PUBLIC__/images/staff_list_images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">职位</span></div></td>
            <td width="12%" height="22" background="__PUBLIC__/images/staff_list_images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">手机</span></div></td>
            <td width="14%" background="__PUBLIC__/images/staff_list_images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">电话</span></div></td>
            <td width="13%" height="22" background="__PUBLIC__/images/staff_list_images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">qq</span></div></td>
            <td width="9%" height="22" background="__PUBLIC__/images/staff_list_images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">状态</span></div></td>
            <td width="20%" height="22" background="__PUBLIC__/images/staff_list_images/bg.gif" bgcolor="#FFFFFF" class="STYLE1"><div align="center">操作</div></td>
          </tr>
          <form action="__APP__/staffManage/delALL" method="post" id="mainForm">
          <?php if( is_array($staffInfo)) foreach( $staffInfo as $vo ){?>
          <tr>
            <td height="20" bgcolor="#FFFFFF"><div align="center">
              <input type="checkbox" name="staffId[]" class="staffId" value="{$vo['uid']}" />
            </div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1">
              <div align="center">{$vo['uid']}</div>
            </div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo['name']}</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo['parent']}</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo['child']}</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo['tel1']}</span></div></td>
            <td bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo['mobile']}</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo['qq']}</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">{$vo['isLock']}</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE4"><a href="__APP__/personal/index?uid={$vo['uid']}" target="_self" style=" text-decoration:none; color:#03515d;"><img src="__PUBLIC__/images/staff_list_images/icon_red.jpg" width="13" height="15" style="border:none;" />查看</a>&nbsp;<a href="__APP__/staffManage/edit?uid={$vo['uid']}" target="_self" style=" text-decoration:none; color:#03515d;"><img src="__PUBLIC__/images/staff_list_images/edt.gif" width="16" height="16" style="border:none;" />信息管理</a></span>
            &nbsp;<a href="__APP__/staffManage/picEdit?uid={$vo['uid']}" target="_self" style=" text-decoration:none; color:#03515d; font-size:12px;"><img src="__PUBLIC__/images/staff_list_images/edt.gif" width="16" height="16" style="border:none;" />附件管理</a></span>
            </div></td>
          </tr>
	      <?php } ?>
       	</form>
        </table></td>
        <td width="8" background="__PUBLIC__/images/staff_list_images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" background="__PUBLIC__/images/staff_list_images/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="__PUBLIC__/images/staff_list_images/tab_18.gif" width="12" height="35" /></td> 
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="STYLE4">&nbsp;&nbsp;&nbsp;</td>
            <td><table border="0" align="right" cellpadding="0" cellspacing="0">
                <tr>
                <td class="STYLE4">共有 {$count} 条记录&nbsp;&nbsp;&nbsp;{$page}&nbsp;&nbsp;</td>
                <!--<td width="40"><img src="__PUBLIC__/images/staff_list_images/first.gif" width="37" height="15" /></td>
                  <td width="45"><img src="__PUBLIC__/images/staff_list_images/back.gif" width="43" height="15" /></td>
                  <td width="45"><img src="__PUBLIC__/images/staff_list_images/next.gif" width="43" height="15" /></td>
                  <td width="40"><img src="__PUBLIC__/images/staff_list_images/last.gif" width="37" height="15" /></td>
                  <td width="100"><div align="center"><span class="STYLE1">转到
                        <input name="textfield" type="text" size="4" style="height:12px; width:20px; border:1px solid #999999;" />
                        页
                  </span></div></td>
                  <td width="40"><img src="__PUBLIC__/images/staff_list_images/go.gif" width="37" height="15" /></td>-->
                  
                </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="__PUBLIC__/images/staff_list_images/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
